package com.eight.feign;

import com.eight.pojo.SysMenu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Description: TODO
 * @Author: Van.Planifolia
 * @CreateTime: 2023-02-23  17:31
 * @Version: 1.0
 */
@FeignClient("rentcar-system")
public interface PermissionFeign {
    /**
     * 费恩接口关联rentcar-system中的根据用户名查询用户权限的方法
     * @param name 用户名字
     * @return 权限List
     */
    @RequestMapping("/system/permission/getPermission/{name}")
    List<SysMenu> getPermissionByName(@PathVariable String name);
}
